<?php
    require_once dirname(__FILE__) . '/../../utils/Utils.php';
    //引入公共参数
    $constant = include(dirname(__FILE__) . '/../../AppletConstant.php');

	$utils =	new Utils();
	/**
	 * 获取人脸识别照片
	 *
	 */
	
	//调用接口地址
	$url = "https://open.95516.com/open/access/1.0/face.image";
	
	//拼装参数Map
	$params 	=	array();
	$params["appId"] 			=	$constant['appId'];
	$params["openId"] 			=	$constant['openId'];
	$params["backendToken"] 	=	$constant['backendToken'];
	$params["accessToken"] 		=	$constant['accessToken'];

	//发送请求
	$resultStr 	=	$utils->sendPostGson($url,$params);
	

	header("Content-type: text/html; charset=utf-8");

    var_dump($params);
	print_r("-------获取人脸识别照片: ".$resultStr." --------- ");
	exit;
?>